import random

def generate_test_cases(num_cases=5, min_length=2, max_length=10, min_height=1, max_height=10):
    """
    生成测试用例
    
    参数:
        num_cases: 测试用例数量
        min_length: 数组最小长度
        max_length: 数组最大长度
        min_height: 最小高度
        max_height: 最大高度
    """
    test_cases = []
    
    # 添加示例用例
    test_cases.append([1,8,6,2,5,4,8,3,7])  # 示例1
    test_cases.append([1,1])  # 示例2
    
    # 生成随机用例
    for _ in range(num_cases):
        length = random.randint(min_length, max_length)
        case = [random.randint(min_height, max_height) for _ in range(length)]
        test_cases.append(case)
    
    return test_cases

if __name__ == "__main__":
    # 生成测试用例
    test_cases = generate_test_cases()
    
    # 打印测试用例
    print("生成的测试用例：")
    for i, case in enumerate(test_cases, 1):
        print(f"测试用例 {i}: {case}") 